/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-13 18:37:30
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-13 19:01:14
 */
public class Student1{
    //成员属性
    private String name;//姓名
    private int age;//年龄
    private char gender;//性别
    private String studentNumber;//学号
    //初始化学生信息
    public Student1(String name,int age,char gender,String studentNumber){
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.studentNumber = studentNumber; 
    }
    //set get
    //姓名
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    //年龄
    public void setAge(int age){
        this.age = age;
    }
    public int getAge(){
        return age;
    }
    //性别
    public void setGender(char gender){
        this.gender = gender;
    }
    public char getGender(){
        return gender;
    }
    //学号
    public void setNumber(String studentNumber){
        this.studentNumber = studentNumber;
    }
    

}
